package com.errui.wechatpush.scheduled;

import com.errui.wechatpush.utils.PushUtil;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * @Author: Erruihhh
 * @Date: 2022/8/25
 * @Time: 0:43
 * @PROJECT_NAME: Task
 * @Description:
 */
@EnableScheduling
@Configuration
public class Task {

    /**
     * 定时 早8点推送  0秒 0分 8时
     */
    @Scheduled(cron = "0 0 8 * * ?")
    public void goodMorning() {
        PushUtil.push();
    }
}
